package com.lrkj.payfee.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.lrkj.payfee.domain.HandAdvice;

/**
 * 交班付款明细Mapper接口
 *
 * @author yajun_ren
 * @date 2022-03-31
 */
public interface HandAdviceMapper
{
    /**
     * 查询交班付款明细
     *
     * @param id 交班付款明细ID
     * @return 交班付款明细
     */
    public HandAdvice selectHandAdviceById(String id);

    /**
     * 查询交班付款明细列表
     *
     * @param handAdvice 交班付款明细
     * @return 交班付款明细集合
     */
    public List<HandAdvice> selectHandAdviceList(HandAdvice handAdvice);

    /**
     * 新增交班付款明细
     *
     * @param handAdvice 交班付款明细
     * @return 结果
     */
    public int insertHandAdvice(HandAdvice handAdvice);

    /**
     * 修改交班付款明细
     *
     * @param handAdvice 交班付款明细
     * @return 结果
     */
    public int updateHandAdvice(HandAdvice handAdvice);

    /**
     * 删除交班付款明细
     *
     * @param id 交班付款明细ID
     * @return 结果
     */
    public int deleteHandAdviceById(String id);

    /**
     * 批量删除交班付款明细
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteHandAdviceByIds(String[] ids);

    /**
     * 批量新增交班付款明细
     *
     * @param handAdvices
     * @return 结果
     */
    public int batchAddData(@Param("saveBeans") List<HandAdvice> handAdvices);

    /**
     * 根据交班id删除数据
     * @return
     */
    public int deletehandRecordId(String handRecordId);
}
